﻿@model List<fenye.Models.Course>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
        <table>
            <tr>
                <td>CourseID</td>
                <td>Title</td>
                <td>Credits</td>
                <td>DepartmentID</td>
            </tr>
            <tbody>
                @foreach (var item in Model)
                {
                    <tr>
                        <td>@item.CourseID</td>
                        <td>@item.Title</td>
                        <td>@item.Credits</td>
                        <td>@item.DepartmentID</td>
                    </tr>
                }
            </tbody>
        </table>
        <a href="Index?pagenum=@(Convert.ToInt32(Request["pagenum"])-1)">上一页</a>
        <a href="Index?pagenum=@(Convert.ToInt32(Request["pagenum"])+1)">下一页</a>
    </div>
</body>
</html>
